<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改项目进度')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
      <form class="form-horizontal m" id="form-projectProgress-edit" th:object="${dict}">
        <input name="dictCode"  type="hidden"  th:field="*{dictCode}" />
      <div class="form-group">
        <label class="col-sm-3 control-label">流程名称：</label>
        <div class="col-sm-8">
          <input class="form-control" type="text" name="dictLabel" id="dictLabel" th:field="*{dictLabel}" required>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-3 control-label">流程标识：</label>
        <div class="col-sm-8">
          <input class="form-control" type="text" name="dictValue" id="dictValue" th:field="*{dictValue}" readonly="true">
          <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>此值由开发人员定义，添加后不可修改</span>
        </div>
      </div>
      <div class="form-group">
        <label class="col-sm-3 control-label">排序：</label>
        <div class="col-sm-8">
          <input class="form-control" type="text" name="dictSort" th:field="*{dictSort}" required>
        </div>
      </div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "project/projectProgress";
		$("#form-projectProgress-edit").validate({
      rules:{
        dictSort:{
          digits:true
        }
      },
			focusCleanup: true
		});
		
		function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-projectProgress-edit').serialize());
        }
    }
	</script>
</body>
</html>
